package com.kc.gb.device.plugins.strip.driver;

import java.io.IOException;

public class AtopControlHolder {

    private volatile static AtopControl atopControl;

    public static AtopControl getAtopControl(String ip,int port) throws IOException {
        if(atopControl == null){
            synchronized (AtopControlHolder.class){
                if(atopControl == null){
                    atopControl = new AtopControl();
                    atopControl.Ip = ip;
                    atopControl.Port = port;
                    atopControl.Init();
                }
            }

        }
        return atopControl;
    }

}
